package com.gxar.marketdelivery.infra.dao.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author nice
 * @version 1.0
 * @created 2023/7/21.
 */
@Data
@NoArgsConstructor
@TableName("market_delivery_material")
public class DeliveryMaterialEntity implements Serializable {
    public static final String FIELD_DELIVERY_TARGET = "delivery_target";
    public static final String FIELD_TARGET_ID = "target_id";
    public static final String FIELD_MANUAL_SCHEMA_VALUE = "static_schema_value";
    public static final String FIELD_DS_SCHEMA_VALUE = "ds_schema_value";
    public static final String FIELD_ID = "id";
    public static final String FIELD_STATUS = "status";
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 物料标的
     */
    private Integer deliveryTarget;
    /**
     * 物料标的ID
     */
    private Long targetId;
    /**
     * 静态
     */
    private String staticSchemaValue;

    /**
     * 数据源
     */
    private String dsSchemaValue;

    /**
     * 转全ParamKey
     */
    private String finalParamKey;

    /**
     * 状态
     */
    private Integer status = 1;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create", fill = FieldFill.INSERT)
    private Date gmtCreate;

    /**
     * 最后修改时间
     */
    @TableField(value = "gmt_modify", fill = FieldFill.INSERT_UPDATE)
    private Date gmtModify;
}
